﻿using Microsoft.VisualStudio.TestTools.UnitTesting;
using aier.dataaccess.dapper;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace aier.dataaccess.dapper
{
    [TestClass()]
    public class AppointmentDalUT
    {
        private AppointmentDal appointmentDal = null;

        [TestInitialize]
        public void Init()
        {
            appointmentDal = new AppointmentDal();
            appointmentDal.dapperHelper = new DapperHelper();
        }

        [TestMethod()]
        public void qryAppointmentUT()
        {
            appointmentDal.QryAppointment(Guid.Parse("0F19474B-D3FE-E411-80BD-00155D94EE04"));
        }


        [TestMethod()]
        public void QryAppointmentListUT1()
        {
            //var obj = appointmentDal.QryAppointmentList(new Guid("5DE0084D-89C2-E411-80B6-00155D94EE04"), 0, "2016-01-05", "2016-01-13", new Guid("1268B153-33AA-E411-80B6-00155D94EE04"), new Guid("0F02CB37-81B3-E511-80C4-00155D94EE04"));
           // Console.WriteLine(obj.Count());
        }

        [TestMethod()]
        public void QryAppointmentListPageUT()
        {
            //var obj = appointmentDal.QryAppointmentListPage(1, 20, "asc", new Guid("0268B153-33AA-E411-80B6-00155D94EE04"));
         //   Console.WriteLine(obj.Count());
        }

        [TestMethod()]
        public void QryDistrictandcountyListUT()
        {
            var obj = appointmentDal.QryDistrictandcountyList(new Guid("0268b153-33aa-e411-80b6-00155d94ee04"));
            Console.WriteLine(obj.Count());
        }
    }
}